D:\git\skunkworks\herald-for-cpp\herald\include\herald\datatype\payload_data.h
Line | Count | Source |
1 | | // Copyright 2020-2021 Herald Project Contributors |
2 | | // SPDX-License-Identifier: Apache-2.0 |
3 | | // |
4 | | |
5 | | #ifndef HERALD_PAYLOAD_DATA_H |
6 | | #define HERALD_PAYLOAD_DATA_H |
7 | | |
8 | | #include "data.h" |
9 | | |
10 | | namespace herald { |
11 | | namespace datatype { |
12 | | |
13 | | class PayloadData : public Data { |
14 | | public: |
15 | | PayloadData(); |
16 | | PayloadData(const Data& from); |
17 | | PayloadData(const std::byte* data, std::size_t length); |
18 | | PayloadData(std::byte repeating, std::size_t count); |
19 | 228 | ~PayloadData() = default; |
20 | | |
21 | | std::string shortName() const; |
22 | | std::string toString() const; |
23 | | }; |
24 | | |
25 | | } // end namespace |
26 | | } // end namespace |
27 | | |
28 | | #endif |